//
//  Set.h
//  Phonograph
//
//  Created by dllo on 16/1/23.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//




/*
 这里放我们常用的一些设置,好比屏幕的高啊,字体大小啊什么的
 //各种机型尺寸
 //Iphone4:{320,480}
 //Iphone5:{320,568}
 //Iphone6:{375,667}
 //iphone6plus{414,736}
 */



#ifndef Set_h
#define Set_h

#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr, "[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif


#define iPhone6 ([UIScreen mainScreen].bounds.size.height == 667) ? YES : NO

#define iPhone4 ([UIScreen mainScreen].bounds.size.height == 480) ? YES : NO

//如果是 DEBUG 模式用测试服务器地址
#if DEBUG

#define     HttpBaseURL        @"http://www.test.com/" // 测试服务器

#else

#define     HttpBaseURL        @"http://www.baidu.com/" // 正式服务器

#endif


#define     iOS8     ([[[UIDevice currentDevice] systemVersion] floatValue] == 8.0) ? YES : NO

#define RGBA(R/*红*/, G/*绿*/, B/*蓝*/, A/*透明*/) \
[UIColor colorWithRed:R/255.f green:G/255.f blue:B/255.f alpha:A]















//屏幕,及屏幕判断
#define kScreen [UIScreen mainScreen].bounds
#define kScreenSize           [[UIScreen mainScreen] bounds].size
#define kScreenWidth          [[UIScreen mainScreen] bounds].size.width
#define kScreenHeight         [[UIScreen mainScreen] bounds].size.height


#define WIDTH [UIScreen mainScreen].bounds.size.width/375
#define HEIGHT [UIScreen mainScreen].bounds.size.height/667

//字体
#define FONT14 [UIFont systemFontOfSize:14.0f]
#define FONT16 [UIFont systemFontOfSize:16.0f]
#define FONT12 [UIFont systemFontOfSize:12.0f]
#define FONT13 [UIFont systemFontOfSize:13.0f]
#define FONT15 [UIFont systemFontOfSize:15.0f]
#define FONT10 [UIFont systemFontOfSize:10.0f]

#endif /* Set_h */
